package com.bajiao.vo.store;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("UserVerify")
public class StoreVerify {

    @ApiModelProperty("1-商品订单 2-购券订单")
    @Excel(name = "订单类型", width = 20, replace = {"商品订单_1","购券订单_2"})
    private Integer orderType;

    @ApiModelProperty("订单编号")
    @Excel(name = "订单编号", width = 30)
    private String orderNo;

    @ApiModelProperty("用户昵称")
    @Excel(name = "用户昵称", width = 30)
    private String nickname;

    @ApiModelProperty("手机号")
    @Excel(name = "手机号", width = 30)
    private String mobile;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("店铺id")
    private String storeId;

    @Excel(name = "店铺名称", width = 30)
    @ApiModelProperty("店铺名称")
    private String storeTitle;

    @Excel(name = "店铺地址", width = 50)
    @ApiModelProperty("店铺地址")
    private String address;

    @Excel(name = "购买数量", width = 20)
    @ApiModelProperty("购买数量")
    private Integer buyNum;

    @Excel(name = "优惠金额", width = 20)
    @ApiModelProperty("优惠金额")
    private BigDecimal discountAmount;

    @Excel(name = "订单金额", width = 20)
    @ApiModelProperty("订单金额")
    private BigDecimal orderAmount;

    @ApiModelProperty("支付时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @ApiModelProperty("支付金额")
    @Excel(name = "支付金额", width = 20)
    private BigDecimal payPrice;

    @Excel(name = "支付方式", width = 20, replace = {"余额支付_1"})
    @ApiModelProperty("1-余额支付")
    private Integer payType;

    @Excel(name = "订单状态", width = 20, replace = {"待使用_1","已使用_2","已核销_3"})
    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("下单时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下单时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("核销时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "核销时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private Date verifyTime;

    @Excel(name = "券获取方式", width = 20, replace = {"注册领取_1","邀请奖励_2","购买_3"})
    private Integer receiveWay;

    @ApiModelProperty("券面值")
    @Excel(name = "券面值", width = 20)
    private String quota;

    @ApiModelProperty("头像")
    private String avatar;


}
